package com.bwf.inner;

/**
 * @Version v1.0
 * @Description: TODO
 * @Author ZHANZHONGXIN
 * @Date 2022/5/11 16:01
 * @Copyright 博为峰
 */
/*
   问题：生成几个.class文件
   Outer$Inner.class
   Outer.class
 */
public class Outer {
    public int a = 6;

    //成员内部类
    class Inner {
        public int b = 9;
        public void show() {
            System.out.println("内部类");
        }
    }
}

class Test {
    public static void main(String[] args) {
        Outer outer = new Outer();
//        System.out.println(outer.a);

        Outer.Inner inner = new Outer().new Inner();
        inner.show();
    }
}

